id: task-88 title: Fix missing metadata and implementation plan in task view command status: Done assignee:
- '@claude' created_date: '2025-06-19' updated_date: '2025-06-19' labels:
- bug
- cli dependencies: []
Description
The task view command (backlog task
Acceptance Criteria
- [x] Task view displays all metadata (status, assignee, labels, created/updated dates)
- [x] Implementation Plan section is shown if present
- [x] Implementation Notes section is shown if present
- [x] All sections maintain proper formatting
- [x] Plain mode (--plain) also includes all information
- [x] Interactive (non-plain) mode shows the same complete information as plain mode
Implementation Plan
- Update the
formatTaskPlainTextfunction to properly display all task metadata - Extract and display Implementation Plan and Implementation Notes sections from content
- Update the interactive view (
viewTaskEnhanced) to show these sections - Ensure both plain and interactive modes show consistent information
Implementation Notes
Approach
Fixed the task view command to display complete task information in both plain and interactive modes.
Technical Changes
-
Modified
/src/cli.ts:- Line 500: Changed plain mode output to use
formatTaskPlainTextinstead of raw content - Line 567: Fixed the shortcut command (
task <id> --plain) to also useformatTaskPlainText
- Line 500: Changed plain mode output to use
-
Enhanced
/src/ui/task-viewer.ts:- Added
extractImplementationPlanSectionfunction to extract Implementation Plan from markdown - Added
extractImplementationNotesSectionfunction to extract Implementation Notes from markdown - Updated
formatTaskPlainTextto display all metadata and sections in plain mode - Updated
refreshDetailPaneinviewTaskEnhancedto show Implementation Plan and Notes in interactive mode - Updated
generateDetailContentto include these sections for the task popup view - Exported
formatTaskPlainTextfor use in CLI
- Added
-
Updated test expectations:
- Modified
/src/test/cli-plain-output.test.tsto expect formatted output instead of raw markdown
- Modified
Results
- Plain mode (
--plain) now shows all metadata (status, assignee, labels, dates) at the top - Both Implementation Plan and Implementation Notes sections are displayed when present
- Interactive mode shows the same complete information as plain mode
- All tests pass and code adheres to project formatting standards